//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopOrderExpress, MinishopOrderExpressResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopOrderExpressList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopOrderExpressResponse>(`/uctoo/minishop_order_express/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopOrderExpress = async (id: string) => {
  return requestClient.get<MinishopOrderExpress>(`/uctoo/minishop_order_express/${id}`);
};

export const adductooMinishopOrderExpress = async (data: Partial<MinishopOrderExpress>) => {
  return requestClient.post<MinishopOrderExpress>('/uctoo/minishop_order_express/add', data);
};

export const edituctooMinishopOrderExpress = async (data: Partial<MinishopOrderExpress>) => {
  return requestClient.post<MinishopOrderExpress>('/uctoo/minishop_order_express/edit', data);
};

export const deleteuctooMinishopOrderExpress = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_order_express/del', { id });
};
